<template>
  <div class="decoratVideo">
    <div class="center">
      <NavInfo :fristTitle="fristTitle" :twoTitle="twoTitle"></NavInfo>
      <div class="video-box">
        <div class="video-top">客房设计整体装修效果视频</div>
        <div class="video-content">
          <div class="big-video">
            <video controls>
              <source src="./video/lbwnb.mp4" type="video/mp4">
            </video>
          </div>
          <div class="video-list">
            <ul class="video-ul">
              <li class="video-li" v-for="item in 10" :key="item">
                <div class="left">
                  <img src="./img/video.jpg" alt="">
                </div>
                <div class="right">
                  <div class="title">别墅装修现场录制</div>
                  <div class="time">2020-05-13</div>
                </div>
              </li>
            </ul>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import NavInfo from '../navInfo'

export default {
  name: "decoratVideo",
  components: {
    NavInfo,
  },
  created() {
    this.fristTitle = this.$route.query.fristTitle
    this.twoTitle = this.$route.query.twoTitle
  },
  data() {
    return {
      fristTitle: '',
      twoTitle: '',
    }
  },
  watch: {
    $route(to) {
      this.fristTitle = to.query.fristTitle
      this.twoTitle = to.query.twoTitle
    }
  }
};
</script>

<style scoped lang="scss">
.decoratVideo {
  margin-bottom: 60px;
  .center {
    width: 84%;
    margin: 0 auto;
    .video-box {
      background: #2E2E35;
      color: #fff;
      padding: 20px 10px;
      .video-top {
        font-weight: bold;
        margin-bottom: 20px;
      }
    }
    .video-content {
      display: flex;
      justify-content: space-between;
      .big-video {
        width: 70%;
        height: 500px;
        video {
          width: 100%;
          height: 100%;
          outline: 0;
        }
      }
      .video-list {
        width: 28%;
        .video-li {
          display: flex;
          justify-content: space-between;
          margin-bottom: 10px;
          cursor: pointer;
        }
        .video-ul {
          overflow-x: hidden;
          height: 500px;
        }
        .video-ul::-webkit-scrollbar {
          width: 4px;
        }
        .video-ul::-webkit-scrollbar-thumb {
          border-radius: 10px;
          -webkit-box-shadow: inset 0 0 5px rgba(150,150,160,0.2);
          background: rgba(150,150,160,0.2);
        }
        .video-ul::-webkit-scrollbar-track {
          -webkit-box-shadow: inset 0 0 5px rgba(40,40,46,0.2);
          border-radius: 0;
          background: rgba(40,40,46,0.1);
        }
        .left {
          width: 40%;
          height: 70px;
          img {
            width: 100%;
            height: 100%;
          }
        }
        .right {
          width: 56%;
          height: 70px;
          display: flex;
          flex-direction: column;
          justify-content: space-between;
          .title {
            font-size: 16px;
            transition: all .3s;
            &:hover {
              color: $public-color;
            }
          }
          .time {
            color: #595959;
            font-size: 14px;
          }
        }
      }
    }
  }
}
</style>
